#include "history.h"

void history_open()
{
    history = fopen(HISTORY_FILE, "r");
}

void history_close()
{
    fclose(history);
}

void history_add(string *input)
{
    history = fopen(HISTORY_FILE, "a");
    str_print(input, history);
    fputc('\n', history);
    fclose(history);
}

